<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>Insert title here</title>
</head>
<body>
	<div class="content-wrapper" th:fragment="role">
	<h3>角色管理</h3>
		<div class="row "></div>
			<div class="row">
				<!-- Role -->
				<div class="col-lg-6">
					<div class="panel panel-default">
						<div class="panel-heading">角色列表</div>
						<input type="hidden" id="roleId" name="roleId" value="" />
						<div class="col-xs-2  pull-left">
							<button class="btn btn-default fa fa-plus btn-sm " id="addBtnRole">添加角色 </button>
						</div>
						<div class="panel-body">
							<table id="roleTable" class="table table-striped table-hover">
								<thead>
									<tr>
										<th></th>
										<th>名称</th>
										<th>最后修改人</th>
										<th>最后修改时间</th>
										<th>操作</th>
	 								</tr>
								</thead>
	 						</table>
						</div>
					</div>
				</div>
				<!-- User -->
				<div class="col-lg-6">
					<div class="panel panel-default">
						<div class="panel-heading">用户列表</div>
							<div class="panel-heading" id="roleTableTitle"></div>
						<div class="col-xs-2  pull-left">
							<button type="button" id="addUserBut" class="btn btn-default btn-sm">添加用户</button>
						</div>
						<div class="panel-body">
							<table id="userTable" class="table table-striped table-hover">
								<thead>
									<tr>
										<th></th>
										<th>名称</th>
										<th>操作</th>
	 								</tr>
								</thead>
	 						</table>
						</div>
					</div>
				</div>
			</div>
	</div>

<div th:fragment="role_dialog">
		<div id="roleModel" tabindex="-1" role="dialog" aria-labelledby="myModalLabelLarge" aria-hidden="true"
			class="modal fade">
			<div class="modal-dialog ">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" data-dismiss="modal" aria-label="Close" class="close">
							<span aria-hidden="true">&times;</span>
						</button>
						<h4 id="roleModelTitle" class="modal-title">新增角色</h4>
					</div>
					<div class="modal-body">
						<form id="roleForm">
							<div class="form-group">
								<label class="control-label">角色名称 *</label>
									<input type="text" name="roleName" id="roleName"
									required="" minlength="2" class="form-control" />
							</div>
							
						    <input type="hidden" id="oper" name="oper" value="" />

						</form>

					</div>
					<div class="modal-footer">
						<button type="button" data-dismiss="modal" class="btn btn-default">取消</button>
						<button type="button" id="submitBtn" class="btn btn-primary">保存</button>
					</div>
				</div>
			</div>
		</div>
		
		<div id="myModal" tabindex="-1" role="dialog"
			aria-labelledby="myModalLabel" aria-hidden="false" class="modal fade"
			style="padding-top: 50px;">
			<div class="modal-dialog" style="width: 310px;">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" data-dismiss="modal" aria-label="Close"
							class="close">
							<span aria-hidden="true">&times;</span>
						</button>
						<h4 id="myModalLabel" class="modal-title">添加用户</h4>
					</div>
					<div class="modal-body">
						<form id="userForm">
							<div class="panel panel-default">
								<!-- START list group-->
								<div data-height="300" data-scrollable="" class="list-group" >
									<div class="media-box-body clearfix"
										style="text-align: center; font-weight: bold; padding: 10px;background-color: #fafafa;">
										<div class="checkbox c-checkbox col-md-4">
											<label><input type="checkbox" id="checkUserAll"
												name="choiceAccountAll" value="" /> <span
												class="fa fa-check"></span></label>
										</div>
										<div class="col-md-5 " style="padding-top: 10px;">
											<div>用户列表</div>
										</div>
									</div>
									<div class="row media-box-body clearfix"
										style="text-align: center; line-height: 25px;">
										<ul id="userData">

										</ul>
									<input type="hidden" id="userIdList" name="userIdList" value="" />
									</div>
								</div>
							</div>
						</form>
					</div>
					<div class="modal-footer">
						<button type="button" data-dismiss="modal" class="btn btn-default">取消</button>
						<button type="button" class="btn btn-primary" id="submitUser">保存</button>
					</div>
				</div>
			</div>
		</div>
</div>	
	
<div th:fragment="role_js">
	<script th:src="@{/business/manager/role/role.js}"></script>
</div>

</body>
</html>